import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-demo04-directive',
  templateUrl: './demo04-directive.component.html',
  styleUrls: ['./demo04-directive.component.css']
})
export class Demo04DirectiveComponent implements OnInit {
  showtitle=false;
  answer='a';
  title='林青狐';
  linkUrl='https://www.baidu.com';
  inputVal='哈哈哈哈';
  constructor() { }

  ngOnInit() {
  }

  buttonClick(e){
    this.linkUrl = 'https://www.linqinghu.cn';
    this.title='林庆虎';
    this.inputVal = '我去你家'
  }
  handleChange(){
    console.log(this.inputVal);
  }

}
